package com.lamer.console.blog.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lamer.console.blog.entity.Book;
import com.lamer.console.blog.mapper.BookMapper;
import com.lamer.console.blog.service.IBookService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lamer.console.blog.vo.BookVO;
import com.lamer.console.blog.vo.ChapterVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 黄诗鹏
 * @since 2021-11-24
 */
@Service
public class BookServiceImpl extends ServiceImpl<BookMapper, Book> implements IBookService {

    @Resource
    private BookMapper bookMapper;

    @Override
    public Page<BookVO> pageBookVO(Page<BookVO> page, QueryWrapper<BookVO> queryWrapper) {
        return bookMapper.selectBookVOPage(page, queryWrapper);
    }
}
